<!--<?php 
require_once template('header');
require_once template('left');
print <<<EOT
<!-- 右边开始 -->
<script language="javascript" type="text/javascript">
var auctionDate = $end_ss;  // 倒数秒数
var showTimeElement = new Array();
showTimeElement[0] = "timeleft";  // 这里是要显示时间的id
var _day = '$lang[day]';
var _hour = '$lang[hours]';
var _minute = '$lang[minutes]';
var _second = '$lang[second]';
var _end = '<input type=\"submit\" class=\"btn2\" name=\"Submit\" value=\"$lang[buy]\">';
var startTime = (new Date()).getTime();
var Temp;
var timerID = null;
var timerRunning = false;
function showtime(){
    now = new Date();
    var ts=parseInt((startTime-now.getTime())/1000)+auctionDate;
    var dateLeft = 0;
    var hourLeft = 0;
    var minuteLeft = 0;
    var secondLeft = 0;
    if(ts < 0){
        ts = 0;
        CurHour = 0;
        CurMinute = 0;
        CurSecond = 0;
    } else {
        dateLeft =parseInt(ts/86400);
        ts = ts - dateLeft * 86400;
        hourLeft = parseInt(ts/3600);
        ts = ts - hourLeft * 3600;
        minuteLeft = parseInt(ts/60);
        secondLeft = ts - minuteLeft * 60;
    }
    if(hourLeft < 10) hourLeft = '0' +hourLeft;
    if(minuteLeft < 10) minuteLeft = '0' +minuteLeft;
    if(secondLeft<10) secondLeft='0'+secondLeft;
    if( dateLeft > 0 )
    dateLeft = dateLeft + _day ;
    else
    dateLeft = "";
    if( hourLeft > 0 )
    hourLeft = hourLeft + _hour ;
    else
    {
        if( dateLeft != "" )
        hourLeft = "00" + _hour;
        else
        hourLeft = "";
    }
    if( minuteLeft > 0 )
    minuteLeft = minuteLeft + _minute ;
    else
    {
        if( dateLeft !="" || hourLeft != "")
        minuteLeft = "00" + _minute;
        else
        minuteLeft = "";
    }
    if( secondLeft > 0 )
    secondLeft = secondLeft + _second ;
    else
    {
        if( dateLeft !="" || hourLeft != "" || minuteLeft != "")
        secondLeft = "00" + _second;
        else
        secondLeft = "";
    }
    if (dateLeft == '') {
        Temp=dateLeft+hourLeft+minuteLeft+secondLeft ;
    }else {
        Temp=dateLeft+hourLeft;
    }
    if(auctionDate <= 0 || dateLeft <=0 && hourLeft<=0 && minuteLeft<=0 && secondLeft <=0)
    {
        Temp = "<strong class=\"H\">"+_end+"</strong>";

        stopclock();
    }
    for (var iii = 0; iii < showTimeElement.length; ++iii)
    {
        var showTime = showTimeElement[iii];
        if (document.getElementById(showTime)) document.getElementById(showTime).innerHTML=Temp;
    }
    timerID = setTimeout("showtime()",1000);
    timerRunning = true;
}
var timerID = null;
var timerRunning = false;
function stopclock()
{
    if(timerRunning)
    clearTimeout(timerID);
    timerRunning = false;
}
function macauclock()
{
    stopclock();
    showtime();
}
function onloadall()
{
    try
    {
        macauclock();

        initprovcity();
    }
    catch(e){
    }
}
try{
    onload=onloadall();
}
catch(e){
}
</script>

	<div id="right">
		<div id="location"><p><b>$navigation &raquo; $auction[act_title]</b></p></div>
		<form name="goods" method="post" action="auction.php">
        <input name="action" type="hidden" value="buy">
        <input name="id" type="hidden" value="$auction[act_id]">
        <input name="goods_id" type="hidden" value="$auction[goods_id]">
		<div id="shop_d" class="member_xg">
			<div class="title8" style="margin-bottom:0;"><span>$auction[title]</span></div>
			<div id="shop_dl">
				<dl>
					<dt>$lang[act_title]：</dt>
					<dd>$auction[act_title]</dd>
				</dl>
				<dl>
					<dt>$lang[start_price]：</dt>
					<dd><strong>$act_config[start_price]</strong></dd>
				</dl>
				<dl>
					<dt>$lang[end_price]：</dt>
					<dd><span>$act_config[end_price]</span></dd>
				</dl>
				<dl>
					<dt>$lang[amplitude]：</dt>
					<dd>$act_config[amplitude]</dd>
				</dl>
				<dl>
					<dt>$lang[deposit]:</dt>
					<dd>$act_config[deposit]</dd>
				</dl>
				   <dl>
					<dt>$lang[event_data]:</dt>
					<dd>$auction[time]</dd>
				</dl>
				<dl>
					<dt>$lang[activity_end]:</dt>
					<dd><span id="timeleft"></span></dd>
				</dl>
				<dl>
				<dt>$lang[buy_name]：</dt>
				<dd>$auction[title]</dd>
			   </dl>
				<dl>
					<dt>$lang[brand]:</dt>
					<dd>$auction[brand]</dd>
				</dl>
			</div>
			<div id="shop_dr"><a href="$auction[url]"><img src="$auction[photo]" width="$mm_img_width" height="$mm_img_height" border="0"></a></div>
			<dl class="xx">
				<dt>$lang[activity]：</dt>
				<dd>$auction[act_desc]</dd>
			</dl>
		</div>
     	</form>
		<div class="member member_xg">
			<table cellpadding="0" cellspacing="0" class="tb">
				<tr>
					<th>$lang[bid_name]</th>
					<th class="jg">$lang[bid_new_pirce]</th>
					<th>$lang[data]</th>
					<th>IP</th>
					<th>$lang[state]</th>
				</tr>
<!--
EOT;
foreach ($bid_list as $val){
print <<<EOT
-->				
				<tr>
					<td>$val[userid]</td>
					<td class="jg">$val[price]</td>
					<td>$val[time]</td>
					<td>$val[ip]</td>
					<td>$val[state]</td>
				</tr>
<!--
EOT;
} print <<<EOT
-->				
			</table>
			<div class="zc1">
			<form name="form1" method="post" action="auction.php">
			<input name="action" type="hidden" value="write">
			<input name="id" type="hidden" value="$auction[act_id]">
			$lang[act_bid]：<input name="price"  type="text"  class="inp8" size="23" maxlength="10">
			<input type="submit" class="btn2" name="Submit" value="$lang[submit]">
			</form>
			</div>
		</div>
		<div class="title_b"><p></p></div>
	</div>
	<!-- 右边结束 -->
<!--
EOT;
?>-->